﻿/****** Object:  Table [dbo].[ProjectComponent]    Script Date: 08/18/2011 15:56:42 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[ProjectComponent](
	[ProjectComponentId] [int] IDENTITY(1,1) NOT NULL,
	[ProjectId] [int] NOT NULL,
	[Name] [nvarchar](64) NOT NULL,
 CONSTRAINT [PK_ProjectComponent] PRIMARY KEY CLUSTERED 
(
	[ProjectComponentId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[ProjectComponent]  WITH CHECK ADD  CONSTRAINT [FK_ProjectComponent_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Project] ([ProjectId])
GO

ALTER TABLE [dbo].[ProjectComponent] CHECK CONSTRAINT [FK_ProjectComponent_Project]
GO


